package com.qyl.deguru.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;



import com.qyl.deguru.common.PageModel;
import com.qyl.deguru.dto.Order;

public interface OrderMapper {
	//根据条件获取总记录数
	int getCountByOrder(Order order);
	//根据条件分页查询订单列表
	List<Order> getOrderListByPage(@Param("order") Order order,@Param("pageModel") PageModel pageModel);
	//保存订单
	int saveOrder(Order order);
	//根据订单id获取订单对象
	Order getOrderByid(int id);
	//根据用户id获取订单信息 
	List<Order> getOrderByUser_id(int oid);
	
	void delOrderByAddress_id(int did);
	
}
